package com.qymerge.manage.system.dao;

import com.qymerge.manage.core.bean.PageRequest;
import com.qymerge.manage.system.ro.SysRoleRO;

import java.util.List;

/**
 * <p>Title: ISysRoleDao</p>
 * <p>Description: </p>
 *
 * @Author cong.zhang
 * @Version 1.0.0
 * @Date 2020/7/26/0026
 * @Time 23:01
 */
public interface ISysRoleDao {

    List<SysRoleRO> list(SysRoleRO sysRole, PageRequest pageRequest);

    int total(SysRoleRO sysRole);

    SysRoleRO findOneById(Long id);

    SysRoleRO findOneByRoleName(String roleName);

    SysRoleRO findOneByUserId(Long userId);

    int install(SysRoleRO role);

    int update(SysRoleRO role);

    int remove(Long id);

}
